<?php

namespace Drupal\shushengyuan\Schemas;

/**
 * @OA\Schema(
 *   schema="PointProductInfo",
 *   type="object",
 *   description="PointProductInfo",
 *   allOf={
 *       @OA\Schema(ref="#/components/schemas/PointProductItem"),
 *   }
 * )
 */
class PointProductInfo extends PointProductItem {

  protected function setValue() {
    parent::setValue();
    $value = [
      /**
       * @OA\Property(
       *   property="body",
       *   type="string",
       *   description="详情富文本",
       * ),
       */
      'body' => $this->wrapper->field_body->value()['safe_value'],
    ];
    $this->merge($value);
  }
}
